<template>
  <div>
    <!-- <van-search v-model="value" placeholder="请输入搜索关键词" show-action shape="round" @search="onSearch">
      <div slot="action" @click="onSearch">搜索</div>
    </van-search> -->
    <van-nav-bar title="进货订单" left-text="返回" left-arrow v-back />
    <van-tabs v-model="active" title-active-color="#26A2FF" color="#26A2FF" sticky swipeable>
      <van-tab title="全部">
        <stock-order-list></stock-order-list>
      </van-tab>
      <van-tab title="待配送">
        <stock-order-list :state="0"></stock-order-list>
      </van-tab>
      <van-tab title="配送中">
        <stock-order-list :state="1"></stock-order-list>
      </van-tab>
      <van-tab title="已完成">
        <stock-order-list :state="2"></stock-order-list>
      </van-tab>
    </van-tabs>
  </div>
</template>

<script>
import StockOrderList from '@/components/StockOrderList';
export default {
  components: {
    StockOrderList
  },
  data() {
    return {
      value: '',
      active: 0,
    };
  },
  methods: {
    onSearch() {}
  }
};
</script>
<style lang="less" scoped>
</style>
